package com.cpecc.manager.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cpecc.dao.system.ToDoDao;
import com.cpecc.model.system.ToDo;
import com.cpecc.model.system.User;
import com.cpecc.model.wuzi.BaoFei;
import com.cpecc.model.wuzi.ShenQing;
import com.cpecc.model.wuzi.WeiXiu;
import com.cpecc.model.wuzi.WuZi;
import com.cpecc.model.wuzi.YiJiao;

@Service
public class ToDoManager {
	
	@Autowired
	private ToDoDao toDoDao;
	
	public void save(ToDo toDo){
		toDoDao.save(toDo);
	}
	
	public void deleteList(ShenQing shenQing){
		toDoDao.deleteList(shenQing);
	}
	
	public void deleteList(YiJiao yiJiao){
		toDoDao.deleteList(yiJiao);
	}
	
	public void deleteList(WeiXiu weiXiu){
		toDoDao.deleteList(weiXiu);
	}
	
	public void deleteList(BaoFei baoFei){
		toDoDao.deleteList(baoFei);
	}
	
	public void deleteList(WuZi wuZi){
		toDoDao.deleteList(wuZi);
	}
	
	public void deleteList(String xinRenId){
		toDoDao.deleteList(xinRenId);
	}
	
	public void delete(ShenQing shenQing,User user){
		toDoDao.delete(shenQing, user);
	}
	
	public void delete(BaoFei baoFei,User user){
		toDoDao.delete(baoFei, user);
	}
}
